﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.master" Inherits="System.Web.Mvc.ViewPage<EPiServer.Models.DocumentList>" %>


<asp:Content ID="Content4" ContentPlaceHolderID="MainBodyRegion" runat="server">
    <div id="MainBody" class="documentList">
        <%= Model.MainBody %>
        <hr />
        
        <h2><%= Model.Heading %></h2>

        <ul>
        <% foreach (var document in Model.Documents) {%>
            <li>
                <h3><%= document.PageName %></h3>
                <%= EPiServer.Html.GetPreview(document) %>
                
                <div class="download">
                    <%= EPiServer.Html.Translate("/document/download") %>
                    <% if(document.DocumentInternalPath != null) {%> 
                        <a href="<%= document.DocumentInternalPath %>" class="<%= document.Extension %>Extension"><%= document.Name %></a>
                    <% } %>
               </div>
            </li>        
        <%}%>
        </ul>
    </div>
</asp:Content>
